package Dao.SYS;

import Model.SYS.SysUser;

import java.util.List;

import org.apache.ibatis.annotations.Param;

public interface SysUserMapper {
	int deleteByPrimaryKey(String userid);

	int insert(SysUser record);

	SysUser selectByPrimaryKey(String userid);

	SysUser selectByNamePwd(@Param("loginname") String loginname,
			@Param("pwd") String pwd);

	List<SysUser> selectAll();

	List<SysUser> selectAllByDw(String userdept);

	int existLoginame(String loginnameString);

	int existByLoginameUserid(@Param("loginname") String loginnameString,
			@Param("userid") String useridString);

	int updateByPrimaryKey(SysUser record);
}